<template>
  <div class="info_page_container primary-blue " style="width: 480px;">
    <div class="page-title" style="cursor: pointer; margin-bottom: 20px;" @click="handleGoBack">
      <i class="el-icon-arrow-left"></i>
      我的钱包/充值
    </div>
    <el-form>
      <el-form-item label="充值方式">
        <el-select v-model="formData.payment" placeholder="请选择">
          <el-option label="加密货币" value="1" />
        </el-select>
      </el-form-item>
      <el-form-item label="充值币种">
        <el-select v-model="formData.payment" placeholder="请选择">
          <el-option label="加密货币" value="1" />
        </el-select>
      </el-form-item>
      <el-form-item label="区块链网络">
        <el-select v-model="formData.payment" placeholder="请选择">
          <el-option label="加密货币" value="1" />
        </el-select>
      </el-form-item>
      <div class="qr-code">
        <div id="qrCode" class="qr-code-wrap flex-center">
          <img
            src=""
            style="display: inline-block;"></div>
        <button type="button" class="el-button qr-btn el-button--default">
          <span> 保存二维码 </span>
        </button>
      </div>
      <el-form-item label="充值地址">
        <el-select v-model="formData.payment" placeholder="请选择">
          <el-option label="加密货币" value="1" />
        </el-select>
      </el-form-item>
      <el-form-item label="数量">
        <el-input placeholder="请输入充值金额" />
      </el-form-item>
      <el-form-item label="预计到货(当前汇率)">
        <el-input placeholder="0.00" />
      </el-form-item>
      <el-form-item label="付款证明（上传付款明细截图）">
        <el-upload
            class="avatar-uploader"
            action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
            :show-file-list="false"
        >
          <!--          <img v-if="imageUrl" :src="imageUrl" class="avatar" />-->
          <img src="@/assets/images/icon-upload.png" alt="">
          <template #tip>
            <div class="label">点击上传</div>
          </template>
        </el-upload>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" style="width: 100%;" size="large">确定</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script setup>
import { reactive } from 'vue'
import router from '@/router'
const formData = reactive({
  payment: ''
})
const handleGoBack = () => {
  router.go(-1)
}
</script>
<style scoped>
.info_page_container {
  margin-top: 24px;
  margin-left: 34px;
}
:deep(.el-form-item) {
  flex-direction: column;
}
:deep(.el-form-item__label) {
  justify-content: flex-start;
  height: 40px;
  line-height: 40px;
}
:deep(.el-form-item__content) {
  height: 40px;
  line-height: 40px;
  position: relative;
  font-size: 14px;
}
.qr-code{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.qr-code-wrap{
  width: 150px;
  height: 150px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
}
.el-button{
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  transition: .1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;
}
.qr-btn{
  height: 40px;
  margin-left: 20px;
}
:deep(.el-button--primary){
  color: #fff;
  background-color: var(--color-main);
  border-color: var(--color-main);
}
.label{
  width: 93px;
  text-align: center;
  margin-top: -15px;
  font-size: 12px;
  color: #999;
}
</style>